﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Text.RegularExpressions;

namespace TestRegExp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter the regular expression:");
            string regularExpression = Console.ReadLine();

            Console.WriteLine("Enter a sample string for comparison:");
            string comparisonString = Console.ReadLine();

            if (Regex.IsMatch(comparisonString, regularExpression))
                Console.WriteLine("The input matches the regular expression");
            else
                Console.WriteLine("The input DOES NOT matches the regular expression");

        }
    }
}
